

function loadTutanGold( title,  drawCanvas, timeinfo, common ){
	var gameDesc = new XploxionGameDesc(title);
	//gameDesc.BackgroundLandscape = "TutanGold/BackgroundLandscape_1280x768.jpg"
	var scaleX = drawCanvas.width/1280.0
	var scaleY = drawCanvas.height/768.0
	console.log("Scale X: "+scaleX)
	console.log("Scale Y: "+scaleY)
	gameDesc.drawCanvasCtxt = drawCanvas.getContext('2d');
	gameDesc.drawCanvas = drawCanvas;
	gameDesc.timeInfo = timeinfo;
	gameDesc.nColumns = 5;
	gameDesc.nRows = 3;
	gameDesc.indexInList = 0;
	//Lista de imagenes a cargar
	gameDesc.resourcesLoadedMaxCount = 15;
	gameDesc.imageSources = new Array(gameDesc.resourcesLoadedMaxCount );
	gameDesc.imageSources[0] = "TutanGold/BackgroundLandscape_1280x768.jpg"
	gameDesc.imageSources[1] = "TutanGold/Spin.png"
	gameDesc.imageSources[2] = "TutanGold/1.png"
	gameDesc.imageSources[3] = "TutanGold/2.png"
	gameDesc.imageSources[4] = "TutanGold/3.png"
	gameDesc.imageSources[5] = "TutanGold/4.png"
	gameDesc.imageSources[6] = "TutanGold/5.png"
	gameDesc.imageSources[7] = "TutanGold/6.png"
	gameDesc.imageSources[8] = "TutanGold/7.png"
	gameDesc.imageSources[9] = "TutanGold/8.png"
	gameDesc.imageSources[10] = "TutanGold/9.png"
	gameDesc.imageSources[11] = "TutanGold/10.png"
	gameDesc.imageSources[12] = "TutanGold/11.png"
	gameDesc.imageSources[13] = "TutanGold/12.png"
	gameDesc.imageSources[14] = "TutanGold/13.png"
	
	//CONTROLES
	gameDesc.controls = new Array(2);	
	gameDesc.controls[0] = new XplxnControl();//SPIN
	gameDesc.controls[0].imageIndex = 1;
	gameDesc.controls[0].posX = 1138*scaleX;
	gameDesc.controls[0].posY = 661*scaleY;
	gameDesc.controls[0].width = 120*scaleX;
	gameDesc.controls[0].height = 94*scaleY;
	
	gameDesc.controls[1] = new XplxnControl();//Area de rieles
	gameDesc.controls[1].imageIndex = -1;
	gameDesc.controls[1].posX = 98*scaleX;
	gameDesc.controls[1].posY = 98*scaleY;
	gameDesc.controls[1].width = 1079*scaleX;
	gameDesc.controls[1].height = 521*scaleY;

	
	gameDesc.simbolos = new Array(13);	
	for(var s = 0; s<gameDesc.simbolos.length; s++){
		gameDesc.simbolos[s] = new XplxnSymbol();
		gameDesc.simbolos[s].imageIndex = 2+s;
	}
		
	gameDesc.currentMatrix = new Array(gameDesc.nColumns*gameDesc.nRows);
	for(var r = 0; r<gameDesc.nRows; r++){
		for(var c = 0; c<gameDesc.nColumns; c++){
			if( (c%2) == 1){//Columnas pares, numeros pares				
				gameDesc.currentMatrix[gameDesc.nRows*c+r] = Math.round(Math.random()*6)*2;
			}else{//Columnas pares, numeros impares
				gameDesc.currentMatrix[gameDesc.nRows*c+r] = Math.round(Math.random()*5)*2+1;
			}
			
		}
	}
	gameDesc.backgroundImageIndex = 0;
	gameDesc.rowsSpaceX = 22;
	//Se hacen los precalculos
	gameDesc.preCalculateDrawingValues();
	return gameDesc; 
}
